/*
 * =====================================================================================
 *
 *       Filename:  const.h
 *
 *    Description:  define all constants
 *
 *        Version:  1.0
 *        Created:  03/26/2012 03:32:24 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  mikejiang (mj), ysjiang.bak at gmail dot com
 *        Company:  Tencent
 *
 * =====================================================================================
 */


#ifndef _AMAZONE_CONST_H_
#define _AMAZONE_CONST_H_  

const int AMZ_MAX_PATH_LEN      = 1024;

const int AMZ_LOG_SILENT_MODE   = 0;
const int AMZ_LOG_FILE_MODE     = 1;
const int AMZ_LOG_STDOUT_MODE   = 2;

const int AMZ_LOG_FATAL         = 1;
const int AMZ_LOG_ERROR         = 2;
const int AMZ_LOG_WARN          = 4;
const int AMZ_LOG_INFO          = 8;
const int AMZ_LOG_DEBUG         = 16;

// default conf
const char* AMZ_DEFAULT_CONF	= "../conf/amazone.conf";
const int AMZ_DEFAULT_LOG_MODE  = AMZ_LOG_SILENT_MODE; 
const int AMZ_DEFAULT_LOG_LEVEL = AMZ_LOG_DEBUG;
const char* AMZ_DEFAULT_LOG_DIR = "./log";
const char* AMZ_DEFAULT_HOST    = "127.0.0.1";
const int AMZ_DEFAULT_PORT      = 6666;

#endif
